From 58fff2a00bfdb74a29f16e29acac3f1089060c70 Mon Sep 17 00:00:00 2001 From: "djm@kirby.fc.hp.com" Date: Thu, 22 Sep 2005 18:05:29 -0600 Subject: [PATCH] First step toward building drivers/xen for ia64 out of sparse --- linux-2.6-xen-sparse/arch/ia64/Kconfig | 12 ++++++++++++ .../arch/xen/configs/xen0_defconfig_ia64 | 2 ++ .../include/asm-xen/asm-ia64/hypervisor.h | 5 +++++ 3 files changed, 19 insertions(+) diff --git a/linux-2.6-xen-sparse/arch/ia64/Kconfig b/linux-2.6-xen-sparse/arch/ia64/Kconfig index 313ef812bc..b0bc8e21c9 100644 --- a/linux-2.6-xen-sparse/arch/ia64/Kconfig +++ b/linux-2.6-xen-sparse/arch/ia64/Kconfig @@ -53,6 +53,18 @@ config XEN Enable Xen hypervisor support. Resulting kernel runs both as a guest OS on Xen and natively on hardware. +config ARCH_XEN + bool + default y + help + TEMP ONLY. Needs to be on for drivers/xen to build. + +config XEN_PRIVILEGED_GUEST + bool + default n + help + Used in drivers/xen/privcmd.c. Should go away? + config XEN_PHYSDEV_ACCESS depends on XEN bool diff --git a/linux-2.6-xen-sparse/arch/xen/configs/xen0_defconfig_ia64 b/linux-2.6-xen-sparse/arch/xen/configs/xen0_defconfig_ia64 index 132b57be0f..b26686a525 100644 --- a/linux-2.6-xen-sparse/arch/xen/configs/xen0_defconfig_ia64 +++ b/linux-2.6-xen-sparse/arch/xen/configs/xen0_defconfig_ia64 @@ -68,6 +68,8 @@ CONFIG_TIME_INTERPOLATION=y CONFIG_EFI=y CONFIG_GENERIC_IOMAP=y CONFIG_XEN=y +CONFIG_ARCH_XEN=y +CONFIG_XEN_PRIVILEGED_GUEST=y CONFIG_XEN_PHYSDEV_ACCESS=y CONFIG_XEN_BLKDEV_GRANT=y CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y diff --git a/linux-2.6-xen-sparse/include/asm-xen/asm-ia64/hypervisor.h b/linux-2.6-xen-sparse/include/asm-xen/asm-ia64/hypervisor.h index 879acbc7e0..ac2ae71c54 100644 --- a/linux-2.6-xen-sparse/include/asm-xen/asm-ia64/hypervisor.h +++ b/linux-2.6-xen-sparse/include/asm-xen/asm-ia64/hypervisor.h @@ -45,4 +45,9 @@ void force_evtchn_callback(void); #include +// for drivers/xen/privcmd/privcmd.c +#define direct_remap_pfn_range(a,b,c,d,e,f) remap_pfn_range(a,b,c,d,e) +#define pfn_to_mfn(x) (x) +#define machine_to_phys_mapping 0 + #endif /* __HYPERVISOR_H__ */ -- 2.30.2